<template>
    <div class="box">
        <!--缓存-->
        <keep-alive>
            <router-view v-cloak v-if="$route.meta.keepAlive"></router-view>
        </keep-alive>
        <!--不缓存-->
        <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>
</template>
<script>

    import Storage from '@/base/storage'
    import routeArr from '@/router/admin/innerRouter.js';

    export default {
        data() {
            return {
            }
        },
        methods: {
        },
        created() {
            console.info("==34343=22323232==")
            this.$router.addRoutes([
                ...routeArr
            ])
        }

    }
</script>
<style scoped lang="less">
    .box {
        position: relative;
        min-height: 100%;
        min-width: 960px;
    }
    .web-wrapper {
        background: #fff;
        position: relative;
        height: 100%;
        overflow: hidden;

        .left-layout {
            width: 200px;
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            overflow: auto;

            .nav-header {
                height: 60px;
                padding: 0 16px;
                display: flex;
                align-items: center;
                border-bottom: 1px solid #e8e9ed;
                box-sizing: border-box;

                .logo-img {
                    width: 26px;
                    height: 26px;
                }

                .logo-title {
                    padding-left: 8px;
                }
            }
        }

        .right-layout {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-sizing: border-box;
            height: 100%;

            &.margin200 {
                margin-left: 200px;
            }

            .header {
                height: 60px;
                flex: 0 0 60px;
                border-bottom: 1px solid #e8e9ed;
                box-sizing: border-box;

                .title {
                    text-align: center;
                    line-height: 60px;
                }
            }

            .container {
                background-color: rgb(238, 241, 246);
                flex: 1;
                overflow: auto;

                &.padding20 {
                    padding: 20px;
                }
            }
        }
    }
</style>
